// pages/index/components/priceDisplay/priceDisplay.js
Component({
    /**
     * 组件的属性列表
     */
    properties: {

    },

    /**
     * 组件的初始数据
     */
    data: {
        goodsList:[
            {
                arrearsFlag: "0",
                authFlag: "0",
                canBorrowNum: "",
                directFlag: "0",
                goodsId: "20221104145641_011617fe93e5f47d09caf",
                goodsImg: "20220518110144_020185eb75e6bf0f26c07@汽油92.jpg",
                goodsMode: "manual",
                goodsName: "车用汽油-92#-国标VIB",
                goodsPrice: 8050,
                goodsProductId: "20221104145529_0226999698607a647bb3a",
                goodsSaleType: "isnull",
                houseStorageNum: 0,
                label: "车用汽油-92#-国标VIB",
                lockLimit: 30,
                originalPrice: 0,
                recommandFlag: "1",
                sellType: "",
                tradeType: "look_up",
                upTime: "01-04 10:24:37",
                userFactoryId: "O0000002284_45c7aaa788ccfcdf",
                userFactoryName: "中化石油福建有限公司",
                userSupplierId: "O0000002284_45c7aaa788ccfcdf",
                userSupplierName: "中化石油福建有限公司",
                value: "20221104145641_011617fe93e5f47d09caf",
            },
            {
                arrearsFlag: "0",
                authFlag: "0",
                canBorrowNum: "",
                directFlag: "0",
                goodsId: "20221104145641_011617fe93e5f47d09caf",
                goodsImg: "20220518110144_020185eb75e6bf0f26c07@汽油92.jpg",
                goodsMode: "manual",
                goodsName: "车用汽油-92#-国标VIB",
                goodsPrice: 8050,
                goodsProductId: "20221104145529_0226999698607a647bb3a",
                goodsSaleType: "isnull",
                houseStorageNum: 0,
                label: "车用汽油-92#-国标VIB",
                lockLimit: 30,
                originalPrice: 0,
                recommandFlag: "1",
                sellType: "",
                tradeType: "look_up",
                upTime: "01-04 10:24:37",
                userFactoryId: "O0000002284_45c7aaa788ccfcdf",
                userFactoryName: "中化石油福建有限公司",
                userSupplierId: "O0000002284_45c7aaa788ccfcdf",
                userSupplierName: "中化石油福建有限公司",
                value: "20221104145641_011617fe93e5f47d09caf",
            },
            {
                arrearsFlag: "0",
                authFlag: "0",
                canBorrowNum: "",
                directFlag: "0",
                goodsId: "20221104145641_011617fe93e5f47d09caf",
                goodsImg: "20220518110144_020185eb75e6bf0f26c07@汽油92.jpg",
                goodsMode: "manual",
                goodsName: "车用汽油-92#-国标VIB",
                goodsPrice: 8050,
                goodsProductId: "20221104145529_0226999698607a647bb3a",
                goodsSaleType: "isnull",
                houseStorageNum: 0,
                label: "车用汽油-92#-国标VIB",
                lockLimit: 30,
                originalPrice: 0,
                recommandFlag: "1",
                sellType: "",
                tradeType: "look_up",
                upTime: "01-04 10:24:37",
                userFactoryId: "O0000002284_45c7aaa788ccfcdf",
                userFactoryName: "中化石油福建有限公司",
                userSupplierId: "O0000002284_45c7aaa788ccfcdf",
                userSupplierName: "中化石油福建有限公司",
                value: "20221104145641_011617fe93e5f47d09caf",
            },
        ],

        tabPosition:'',
        customTab:[
            {
                name:'周'
            },
            {
                name:'月'
            },
            {
                name:'日'
            }
         ],
        transaction:[
            {
                goodsName:'92',
                userSupplierName:'userSupplierName',
                price:'12',

                oilHouseName:'18:13:26'
            },
            {
                goodsName:'95',
                userSupplierName:'userSupplierName',
                price:'12',

                oilHouseName:'18:13:26'
            },
            {
                goodsName:'95',
                userSupplierName:'userSupplierName',
                price:'12',

                oilHouseName:'18:13:26'
            },
        ],
        chartDataList:[
            {
                productName:'车用汽油-92#-国标VIA',
                count:11261,
                tabPosition:'month'
            },
            {
                productName:'车用汽油-95#-国标VIA',
                count:8852,
                tabPosition:'month'
            },
            {
                productName:'车用柴油-0#-国标VI',
                count:9262,
                tabPosition:'month'
            }
        ],
        TabCur:0


    },

    /**
     * 组件的方法列表
     */
    methods: {
        tabSelect: function(t) {
            this.data.TabCur = t.currentTarget.dataset.eventOpts[0][1][0][1][0]
            this.setData({
                TabCur: this.data.TabCur
            })
        },

    }
})
